		  <?php get_header(); ?>
		   
		   <div id="container">
		   
		       <?php get_sidebar(); ?>
		   
		       <div id="content_news">
			       <p id ="news">Новости</p>
				   
				   <?php query_posts("cat=5"); ?>
				   <?php if (have_posts()):?>
				   <?php while (have_posts()): the_post();?>
				   
			      <div class="post">
				     
					 <div class="p_entry">
					      <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
						  <div class="p_head">
					           <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
					      </div><!--end p_head-->
						  <p><?php the_excerpt(); ?>
						  </p>
						  <a href="<?php the_permalink(); ?>" class="more-link">Читать далее</a>
						  <div class="meta_bottom">
						     <span class="date"><?php the_time('j F Y'); ?></span>
						 </div><!--end meta_bottom-->
						  
					 </div><!--end p_entry-->
					 
				  </div><!--end post-->
				  
				  <?php endwhile; ?>
				  
				   <div class="nav_posts">
				      <?php
							global $wp_query;

							$big = 999999999; // need an unlikely integer

							echo paginate_links( array(
								'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
								'format' => '?paged=%#%',
								'current' => max( 1, get_query_var('paged') ),
								'total' => $wp_query->max_num_pages
							) );
					   ?>
				     
				   </div><!--end nav_posts <?php posts_nav_link(); ?>-->
				  
				  
				  <?php endif; ?>
				  
				  
				  
			   </div><!--end content_news-->
			   
		   </div><!--end container-->
		   
		   <div class="clear"></div>
		   
		   <?php get_footer(); ?>
		  
